<#include "/common/_layout.html"/>
<@layout/>
<script type="text/javascript" src="${ctx}/static/js/audit.js"></script>
</head>
<body class="easyui-layout">
<div data-options="region:'west',split:true,border:false,title:'未审核凭证列表'"  style="width: 400px">
<table id="tg" data-options="toolbar:'#toolbar',singleSelect: true,onClickRow: function(rowIndex, rowData){$('#dg').datagrid('load',{voucherId:rowData.voucherId});}">
	<thead>
		<tr>
				<th data-options="field:'id',hidden:true">id</th>
				<th align="center" data-options="field:'voucherId'" width="16%">凭证字号</th>
				<th align="center" data-options="field:'date'" width="24%">日期</th>
				<th align="center" data-options="field:'maker'" width="20%">制单人</th>
				<th align="center" data-options="field:'auditor',formatter:function(value,row,index){if(value==null){return '未审核';}else{return value;}}" width="20%">审核人</th>
				<th align="center" data-options="field:'isClose',formatter:function(value,row,index){if(value=='1'||value==1){return '已关账';}else{return '未关账'}}" width="20%">是否已关账</th>
		</tr>
	</thead>
</table>
</div> 

  <div data-options="region:'center',split:true,border:false,title:'凭证明细'">
	<table id="dg">
		<thead>
			<tr>
				<th data-options="field:'id',hidden:true">id</th>
				<th align="center" width="15%" data-options="field:'date'">日期</th>
				<th align="center" width="10%" data-options="field:'voucherId'">凭证字号</th>
				<th align="center" width="25%" data-options="field:'summary'">摘要</th>
				<th align="center" width="20%" data-options="field:'name'">科目</th>
				<th align="center" width="15%"  data-options="field:'debitAmount'">借方金额</th>
				<th align="center" width="15%"  data-options="field:'creditAmount'">贷方金额</th>
			</tr>
		</thead>
	</table>
</div>

<div id="toolbar" style="padding:5px;height:auto;">
    <div  style="display:inline;margin-left:5px;">
     <a class="easyui-linkbutton" id="audit" iconCls="icon-ok" plain="true">审核</a>
	</div>
</div>

</body>
</html>